export default {
  //开启命名空间
  namespaced:true,
  //数据
  state:()=>({
    address:  JSON.parse(uni.getStorageSync('user') || '{}')
  }),
  mutations:{
      updateAddress(state,address) {
        state.address = address
        this.commit('m_user/setUser')
      },
      setUser(state){
        uni.setStorageSync('user',JSON.stringify(state.address) )
      }
  },
  getters:{}
  
  
}